/**
 * 数组基本使用示例
 *
 * @author Kevin
 * @date 2018-10-10
 */
public class ArrayTest {

    public static void main(String[] args) {
        int[] arr = new int[12];
        for (int i = 0; i < arr.length; i++) {
            arr[i] = i;
        }

        int[] scores = new int[]{100, 98, 99};
        for (int i = 0; i < scores.length; i++) {
            System.out.println(scores[i]);
        }

        for (int score : scores) {
            System.out.println(score);
        }

        scores[0] = 60;
        for (int i = 0; i < scores.length; i++) {
            System.out.println(scores[i]);
        }
    }

}
